package com.example.tibetanmedicinechest.mapper;

import com.example.tibetanmedicinechest.model.Content;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;
import java.util.Map;

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author 编程笨蛋
 * @since 2023-08-12
 */
@Mapper
public interface ContentMapper extends BaseMapper<Content> {
    List<Map<String,Object>> selectContentByUserId(int id);

    List<Map<String,Object>> selectByMedicineId(int id);

    Integer addContent(int user_id,int medicine_id,String content);
}
